import { request, config } from 'utils'

const { api } = config
const { organizationList,organizationInfo,newOrganization,
		updateOrganization,deleteOrganization,addOrganization,
		allOrganizationlist,addDepartment,deleteDeparttment,
		removeOrganization} = api

export async function organizationList1 (params){
	return request({
		url:organizationList,
		method:'post',
		data:params,
	})
}

export async function organizationInfo1 (params){
	return request({
		url:organizationInfo,
		method:'post',
		data:params,
	})
}

export async function newOrganization1 (params){
	return request({
		url:newOrganization,
		method:'post',
		data:params,
	})
}

export async function updateOrganization1 (params){
	return request({
		url:updateOrganization,
		method:'post',
		data:params,
	})
}

export async function deleteOrganization1 (params){
	return request({
		url:deleteOrganization,
		method:'post',
		data:params,
	})
}

export async function addOrganization1 (params){
	return request({
		url:addOrganization,
		method:'post',
		data:params,
	})
}

export async function allOrganizationlist1 (params){
	return request({
		url:allOrganizationlist,
		method:'post',
		data:params,
	})
}

export async function addDepartment1 (params){
	return request({
		url:addDepartment,
		method:'post',
		data:params,
	})
}

export async function deleteDeparttment1 (params){
	return request({
		url:deleteDeparttment,
		method:'post',
		data:params,
	})
}

export async function removeOrganization1 (params){
	return request({
		url:removeOrganization,
		method:'post',
		data:params,
	})
}
